
const uint8_t LED_PIN(13);  // pin 13 has an LED connected to it on most Arduino boards


int count(0);
unsigned long lastPrint;


void setup()
{
   // Initialize the serail port
   //Serial.begin(57600);
   Serial.begin(19200);
   pinMode(LED_PIN, OUTPUT);

   Serial.println("Starting blink test.");
   digitalWrite(LED_PIN,1);
   delay(700);

   lastPrint = millis();
}


void loop()
{
   unsigned long now = millis();

   // print the time no soner than 1000ms (1 second)
   if( (now-lastPrint) > 1000)
      Serial.println(now);
   // set the value to the LSB of count
   digitalWrite(LED_PIN, (count & 1) );
   ++count;  // increment count

   delay(300);

}

